package r21310.chap06.d1123;

import java.util.HashSet;
import java.util.Set;

public class Demo02 {
    public static void main(String[] args) {
        Student stu1=new Student("张三","11001");
        Student stu2=new Student("李四","11002");
        Student stu3=new Student("王五","11003");
        Student stu4=new Student("张三","11001");
        Set<Student> set=new HashSet<>();
        set.add(stu1);
        set.add(stu2);
        set.add(stu3);
        set.add(stu4);


        System.out.println(set);

    }
}
